package com.yunwushanhe.constant;

import org.springframework.http.MediaType;

import java.nio.charset.StandardCharsets;

public class Constant {
    //请求头的token键值
    public static final String USER_TOKEN_KEY = "token";
    public static final String UTF_8_NAME = StandardCharsets.UTF_8.name();
    public static final String APPLICATION_JSON_VALUE = MediaType.APPLICATION_JSON_VALUE;

    public static final Integer DEFAULT_PAGE_NUM = 1;
    public static final Integer DEFAULT_PAGE_SIZE = 10;


    // 文章未发表是草稿
    public static final Integer ARTICLE_STATUS_DRAFT = 1;
    // 文章已发表
    public static final Integer ARTICLE_STATUS_NORMAL = 0;

    // 热门文章查询展示页数
    public static final Integer HOT_PAGE_NUM = 1;
    // 热门文章每页显示数量
    public static final Integer HOT_PAGE_SIZE = 10;

    // 类别正常状态
    public static final String CATEGORY_STATUS_NORMAL = "0";
    // 类别不正常状态
    public static final String CATEGORY_STATUS_DRAFT = "1";

    // 友链的审核通过状态
    public static final String LINK_STATUS_NORMAL = "0";
    // 友链的审核未通过状态
    public static final String LINK_STATUS_REFUSE = "1";
    // 友链的待审核状态
    public static final String LINK_STATUS_PREPARATION = "2";

    // 根评论Id
    public static final Long COMMENT_ROOT_ID = -1L;

    //标注文章评论的类型
    public static final String ARTICLE_COMMENT = "0";

    //标注友联评论的类型
    public static final String LINK_COMMENT = "1";

    public static final String PICTURE_PREFIX_PATH = "http://rzdndylyx.hn-bkt.clouddn.com";

    // Menu表中类型C的常量记录
    public static final String MENU_TYPE_C = "C";
    // Menu表中类型F的常量记录
    public static final String MENU_TYPE_F = "F";
    // Menu表中状态常量记录
    public static final String MENU_STATUS_NORMAL = "0";

    // 标签状态正常标识
    public static final String TAG_STATUS_NORMAL = "0";
    // 标签状态不正常标识
    public static final String TAG_STATUS_DRAFT = "1";

    // 是后台管理员的标识
    public static final String IS_ADMIN = "1";
}
